package com.fuck.jenkins.doutest.controller;

import com.fuck.jenkins.doutest.ConfigString;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {

    private final Logger log = LoggerFactory.getLogger(this.getClass());

    @Autowired
    ConfigString configString;

    @RequestMapping(value = "/{name}", method=RequestMethod.GET)
    public String syaHello(@PathVariable String name) {
        return "SUCCESS";
    }
}
